package d2_create_runnable;

/**
 * 2024/6/22 任务栏实现Runnable接口 15:18
 */
public class MyRunnable implements Runnable {
    @Override
    public void run() {
          //线程要执行的任务
        for (int i = 1; i <5 ; i++) {
            System.out.println("子线程输出 ===》"+i);
        }
    }
}
